home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / VISUALBA / VBCTRL.ZIP / VBLISTBX.TXT < prev    next >
Text File  |  1993-01-01  |  3KB  |  80 lines

  1.  
  2.  
  3.        Custom Listbox controls for Visual Basic Version 0.02 March 1992
  4.                                  by Mark Gamber
  5.  
  6.    This control provides three types of listbox new to Visual Basic. These
  7. three types aer Multiple Selection, Multiple Column and a combination of the
  8. two. All controls share the same property and event names. Some of the values
  9. have different meanings depending on the actual control in use. To use the
  10. control, copy VBLISTBX.VBX to your Visual Basic directory. Select the filename
  11. from the listbox displayed by "Add File..." in the "File" menu. Three new tools
  12. should appear in the toolbox and, if this is the case, you're ready to go.
  13.  
  14. The control names selected are:
  15.  
  16.    "MultipleSel" - Multiple selection listbox.
  17.    "MCMultSel" -   Multiple column, multiple selection listbox.
  18.    "MultCol" -     Multiple column, single selection listbox.
  19.  
  20.  
  21. Standard listbox properties:
  22.  
  23.    ListCount: Number of items in a listbox. Read only.
  24.  
  25.               Items = MultipleSel.ListCount
  26.  
  27.  
  28.    ListIndex: Sets or retrieves the select status of an item.
  29.  
  30.               Selected = MultipleSel.ListIndex( 1 )
  31.            or
  32.               MultipleSel.ListIndex( index% ) = TRUE (FALSE)
  33.  
  34.  
  35.    List:      Retrieves text associated with item in a listbox.
  36.  
  37.               a$ = MultipleSel1.List( index% )
  38.  
  39.  
  40.  
  41. New items:
  42.  
  43.    CellWidth: Sets the pixel width of a multiple column listbox cell.
  44.  
  45.               MultCol.CellWidth = 60
  46.            or
  47.               cw = MultCol.CellWidth
  48.  
  49.  
  50.    Refresh: Enables and disables automatic listbox updates.
  51.  
  52.               MultipleSel.Refresh = FALSE (TRUE)
  53.  
  54.  
  55.  
  56. New events supported by controls:
  57.  
  58.    Click:  Called when a listbox item is clicked on. For the multiple selection
  59.            listboxes, Item is the number of selected items. For the single
  60.            selection multi-column listbox, Item is the number of the listbox
  61.            item clicked on.
  62.  
  63.    DblClk: Called when a listbox item is double-clicked on. For multiple
  64.            selection listboxes, Item is the number of selected items. For the
  65.            single selection multi-column listbox, Item is the number of the
  66.            listbox item double-clicked on.
  67.  
  68.  
  69.  
  70. This software is free for all to use given two conditions:
  71.  
  72. 1. Credit be given where credit is due.
  73. 2. I'm not liable.
  74.  
  75. The software is dated March, 1992 and is currently owned by Mark Gamber.
  76.  
  77. Bugs, suggestions and whatnot may be sent E-Mail to PCA MarkG on America Online
  78. or to pcamarkg@aol.com through Internet.
  79.  
  80.